package com.wonders.frame.chron.util;

public class EnumConstant {

	/**
	 * 流程判断
	 *
	 */
	public enum FlowType {
		// 利用构造函数传参
		CARD("card"), SUMMARY("summary");

		// 定义私有变量
		private String nType;

		// 构造函数，枚举类型只能为私有
		private FlowType(String _nType) {
			this.nType = _nType;
		}

		public String toString() {
			return String.valueOf(this.nType);
		}
	}
	
	public enum UserGroup {
		//部门领导 修志办 修志办初审 修志办复审
        DEPT_LEADER, CHRON_LEADER, CHRON_VIEW, CHRON_REVIEW
    }
	
	public static void main(String[] args) {
		String type = "card";//用于判断是卡片管理流程还是长编汇总流程
		if(FlowType.CARD.toString().equals(type)){
			System.out.println("card");
		}
		if(FlowType.SUMMARY.toString().equals(type)){
			System.out.println("summary");
		}
	}
}
